package rpa

import (
	"context"
)

/**
 * @Author: xiuliu
 * @Description:
 * @File:  rpa_repository_iface
 * @Version: 1.0.0
 * @Date: 2023/10/30 16:46
 */

type RpaRepositoryIface interface {
	//新增租户的RPA配置信息
	InsertData(ctx context.Context, data *RpaConfig) (bool, error)
	//更新租户的RPA配置信息
	UpdateData(ctx context.Context, data *RpaConfig) (bool, error)
	//获取租户的RPA信息
	GetInfo(ctx context.Context, condition map[string]interface{}) (*RpaConfig, error)
	//保存RPA启动日志
	InsertStartLog(ctx context.Context, data *RpaStartLog) (bool, error)
	//校验RPA token
	CheckRpaToken(ctx context.Context, condition map[string]interface{}) (*RpaStartLog, error)
}
